package com.studio5704website.infrastructure.mapper;

import com.studio5704website.core.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;


/**
 * @author 高威
 * UserMapper
 */
@Mapper
@Service
public interface UserMapper {

    void insert(@Param("user") User user);

    void update(@Param("update") User user);

    User findById(@Param("id") String id);

    User findByUsername(@Param("username") String username);

    User findByEmail(@Param("email") String email);
}
